﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

using KingRoad.EPM.PersonnelLogEntity.Model;
using KingRoad.EPM.PersonnelLogDAL;

namespace KingRoad.EPM.PersonnelLogDAL.PlmConstructionlogcivilService
{
    /// <summary> 
    /// 文件生成时间 2017/1/12 11:26:48
    /// </summary> 
    public interface IPlmConstructionlogcivilService : IBaseService<PlmConstructionlogcivilInfo>
    {
        /// <summary>
        /// 施工单位人员----根据总监办标号，施工日期，驻地办标号，施工单位ID查询
        /// </summary>
        /// <param name="sqlWhere"></param>
        /// <returns></returns>
        DataTable GetInfoListByCondition(string sqlWhere = " 1=1 ");


        bool InsterConstructionlogInfo(Dictionary<string, string> formValues);


        bool UpdateConstructionlogInfo(Dictionary<string, string> formValues);

        /// <summary>
        /// 根据总监办标号，和施工日期分组查询信息
        /// </summary>
        /// <param name="strWhere">sql语句</param>
        /// <returns></returns>
        List<PlmConstructionlogcivilInfo> GetInfoListGroupByDirectorSection(string strWhere = " 1=1 ");

        /// <summary>
        /// 更新总监办评述
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        bool UpdateDirectorCommentInfo(List<PlmConstructionlogcivilInfo> list);

        /// <summary>
        /// 更新驻地办办评述
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        bool UpdateStationCommentInfo(List<PlmConstructionlogcivilInfo> list);
    }
}
